package com.example.artwindow.constants;

public enum HttpCodeEnum {
	SUCCESS(200, "操作成功"),

	TOKEN_OVERDUE(403,"认证过期"),
	ERR_LOGIN(518,"登陆失败"),
	ERR_NOT_LOGIN(501,"未登录"),
	ERR_USERNAME_EXISTS(503,"用户名已存在"),
	ERR_PASSWORD(503,"密码错误"),

	ERR_USERNAME_NULL(503,"用户名为空"),
	ERR_USER_NOT_EXISTS(503,"用户不存在"),
	ERR_OS(503,"存储失败"),

	ERR_NOT_KNOW(599,"未知错误");



	final int code;

	final String msg;

	HttpCodeEnum(int code, String errorMessage){
		this.code = code;
		this.msg = errorMessage;

	}
	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}


}
